import logging


def save_log(msg, logPath):
    LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
    logging.basicConfig(filename=logPath, level=logging.ERROR, format=LOG_FORMAT)
    # logging.error(msg=url)
    logging.error(msg=msg)
